package com.test.designPattern;

public class MySingleton {
    private MySingleton() {

    }

    private static class SingletonHolder {
        private static final MySingleton INSTANCE = new MySingleton();
    }

    public static final MySingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}

